package com.vishu.beanfactory;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.FileSystemResource;

public class DrawingApp {
	
	public static void main(String[] args) {
		
		BeanFactory factory=new ClassPathXmlApplicationContext("BeanFactoryXML.xml");
		
		Triangle triangle=(Triangle)factory.getBean("triangle"); //her string argument is bean's 'id' in xml file
	
		triangle.draw();
	}

}
